package com.cheer.lib_recycle_swipe.touch;

/**
 * 描述 ：
 * 作者 ：hq
 * 时间 ：2017/7/2 20:33
 */
public interface OnItemMoveListener {

    /**
     * When drag and drop the callback.
     *
     * @param fromPosition start position.
     * @param toPosition   target position.
     * @return To deal with the returns true, false otherwise.
     */
    boolean onItemMove(int fromPosition, int toPosition);

    /**
     * When items should be removed when the callback.
     *
     * @param position swipe position.
     */
    void onItemDismiss(int position);

}
